<%@ page language="java" contentType="text/html; charset=UTF-8" import="com.zd.entity.*"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>章节修改</title>
<style>
  body, h1 {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
  }

  .login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #f7f7f7;
  }

  .login-box {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 400px;
  }

  h1 {
    text-align: center;
  }

  .form-input {
  margin:auto;
    margin-bottom: 20px;
  }

  .form-input input {
  
  margin-top:10px;
    width: 50%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
  }

  .form-input input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
  }

  .form-submit {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .form-submit:hover {
    background-color: #0056b3;
  }
</style>
</head>
<body>
<%
	String chapterId=request.getParameter("chapterId");
//String novelId=request.getParameter("novelId");
String chapterName=request.getParameter("chapterName");
String text=request.getParameter("chapterContent");

String updateTime=request.getParameter("updateTime");

%>
<div class="login-container">
<form action="AdminChapterServlet" method="post">
 	 <div class="login-box">
	    <h1>修改小说相关</h1>
	    <div class="form-input" style="display:none">
	      <label for="chapterId">章节id</label>
	      <input type="text" id="chapterId" value="<%= chapterId%>" name="chapterId" required>
	    </div>
	     
	        <div class="form-input">
	      <label for="chapterName">章节名:</label>
	      <input type="text" id="chapterName" value="<%= chapterName%>" name="chapterName" required>
	    </div>

	        <div class="form-input">
	      <label for="updateTime">发布时间:</label>
	      <input type="text" id="updateTime" value="<%= updateTime%>" name="updateTime" required>
	    </div>

		 <div class="form-input">
	      <label for="text">小说简介:</label>
	      	<textarea name="text" rows="4" cols="50"  style="background-color:#ccc">
					<%=text %>
			</textarea>
	    </div>
	    <input   class="form-submit" type="submit" value="确定修改">
	   
	  </div>
	  </form>
	</div>

</body>
</html>